package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAuditLogMapper;
import com.ruoyi.system.domain.SysAuditLog;
import com.ruoyi.system.service.ISysAuditLogService;

/**
 * 审核日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class SysAuditLogServiceImpl implements ISysAuditLogService 
{
    @Autowired
    private SysAuditLogMapper sysAuditLogMapper;

    /**
     * 查询审核日志
     * 
     * @param auditlogId 审核日志主键
     * @return 审核日志
     */
    @Override
    public SysAuditLog selectSysAuditLogByAuditlogId(Long auditlogId)
    {
        return sysAuditLogMapper.selectSysAuditLogByAuditlogId(auditlogId);
    }

    /**
     * 查询审核日志列表
     * 
     * @param sysAuditLog 审核日志
     * @return 审核日志
     */
    @Override
    public List<SysAuditLog> selectSysAuditLogList(SysAuditLog sysAuditLog)
    {
        return sysAuditLogMapper.selectSysAuditLogList(sysAuditLog);
    }

    /**
     * 新增审核日志
     * 
     * @param sysAuditLog 审核日志
     * @return 结果
     */
    @Override
    public int insertSysAuditLog(SysAuditLog sysAuditLog)
    {
        return sysAuditLogMapper.insertSysAuditLog(sysAuditLog);
    }

    /**
     * 修改审核日志
     * 
     * @param sysAuditLog 审核日志
     * @return 结果
     */
    @Override
    public int updateSysAuditLog(SysAuditLog sysAuditLog)
    {
        return sysAuditLogMapper.updateSysAuditLog(sysAuditLog);
    }

    /**
     * 批量删除审核日志
     * 
     * @param auditlogIds 需要删除的审核日志主键
     * @return 结果
     */
    @Override
    public int deleteSysAuditLogByAuditlogIds(Long[] auditlogIds)
    {
        return sysAuditLogMapper.deleteSysAuditLogByAuditlogIds(auditlogIds);
    }

    /**
     * 删除审核日志信息
     * 
     * @param auditlogId 审核日志主键
     * @return 结果
     */
    @Override
    public int deleteSysAuditLogByAuditlogId(Long auditlogId)
    {
        return sysAuditLogMapper.deleteSysAuditLogByAuditlogId(auditlogId);
    }
}
